<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/controller/common/common_setting_unit.php"); ?>


<div style="display:none">

<?


//过滤特殊字符
 function ReplaceSpecialChar($C_char){//过滤特殊字符
 $C_char=HTMLSpecialChars($C_char); //将特殊字元转成 HTML 格式
 $C_char=str_replace(",","，",$C_char); //替换英文逗号,
 $C_char=str_replace("<","《",$C_char); //替换英文小破折号<
 $C_char=str_replace(">","》",$C_char);//替换英文小破折号>
 $C_char=str_replace("'","~",$C_char);//替换英文单引号 '
 $C_char=str_replace("{","《",$C_char);//替换英文大括号{
 $C_char=str_replace("}","》",$C_char);//替换英文大括号}
 $C_char=str_replace("(","《",$C_char);//替换英文小括号(
 $C_char=str_replace("）","》",$C_char);//替换英文小括号）
 htmlentities($C_char,ENT_QUOTES);//替换英文双引号 "
 return $C_char;//返回处理结果
 }
 
 
 
?>

<?
global $table_Prefix;
$table_Suffix = "plate";
$table = $table_Prefix . $table_Suffix;

$plate_name        = ReplaceSpecialChar($_REQUEST['plate_name']);
$plate_title       = ReplaceSpecialChar($_REQUEST['plate_title']);
$plate_introduce   = ReplaceSpecialChar($_REQUEST['plate_introduce']);
$plate_keywords    = ReplaceSpecialChar($_REQUEST['plate_keywords']);
$plate_description = ReplaceSpecialChar($_REQUEST['plate_description']);
//$plate_seo_level   = addslashes(implode(",", $_REQUEST['seo_level']));
$plate_url         = ReplaceSpecialChar($_REQUEST['plate_url']);

$plate_detail = ReplaceSpecialChar($_REQUEST['plate_detail']);
$plate_permit = ReplaceSpecialChar($_REQUEST['plate_permit']);


$plate_mid=$_REQUEST ['sys_part'];

//seo_level   = '$plate_seo_level',

$sql = "update $table SET
name        = '$plate_name',
title       = '$plate_title',
introduce   = '$plate_introduce',
keywords    = '$plate_keywords',

url         = '$plate_url',
description = '$plate_description',
detail = '$plate_detail',
permit = '$plate_permit',


seo_term = '".implode(',',$_REQUEST['seo_term'])."',
seo_list = '".implode(',',$_REQUEST['seo_list'])."',
seo_detail = '".implode(',',$_REQUEST['seo_detail'])."'

where mid='$plate_mid'";

sql_log($sql);
$query = mysql_query($sql) or die ('插入数据失败');

?>

<script type="text/javascript">
    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "edit.php?sys_part=<?echo $plate_mid?>";
</script>

    </div>